package com.stylefeng.guns.modular.netcar.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=true)
@TableName("order_note_dict")
 /**
 * 订单备注字典
 *
 * @author sasazaixian
 * @Date 2018-10-23 11:05
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class OrderNoteDict extends Model<OrderNoteDict> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "ond_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String ondId;     //id
   
    //扩展能查询字段
    @TableField(exist = false)
    @JSONField(serialize = false)
    private String key ;
    //开始日期
    @TableField(exist = false)
    @JSONField(serialize = false)
    private String sdate;
    //截止日期 
    @TableField(exist = false)
    @JSONField(serialize = false)
	private String edate;
    //排序字段
    @TableField(exist = false)
    @JSONField(serialize = false)
	private String  sortField ;
	//排序	
	@TableField(exist = false)
    @JSONField(serialize = false)
	private String sortOrder;
	
    @ApiModelProperty(value = "订单备注内容")
    @TableField("ond_context")
    private String ondContext;     //订单备注内容

    @ApiModelProperty(value = "是否启用 0：禁用 1：启用")
    @TableField("ond_is_alived")
    private String ondIsAlived;     //是否启用 0：禁用 1：启用

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;     //创建人

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;     //创建时间

    @ApiModelProperty(value = "更新人")
    @TableField("update_user")
    private String updateUser;     //更新人

    @ApiModelProperty(value = "创建时间")
    @TableField("update_time")
    private Date updateTime;     //创建时间

    @ApiModelProperty(value = "顺序")
    @TableField("ond_order")
    private Integer ondOrder;     //顺序
    
    
    @Override
    protected Serializable pkVal() {
        return this.ondId;
    }
    
}
